clientLocation

open fun clientLocation(): Point

Returns the location of the mouse cursor in the component's coordinate system at the time the event occurred.

For example, clicking in the top-left corner of the client area will always result in that the x field of the result equals 0, regardless of whether the page is scrolled horizontally.